import functools


def log(func):
    @functools.wraps(func)
    def wrapper(*args, **kw):
        print('logs-------call %s' % func.__name__)
        return func(*args, **kw)

    return wrapper


def log1(text):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kw):
            print('%s %s():' % (text, func.__name__))
            return func(*args, **kw)

        return wrapper

    return decorator


@log
def now1():
    print('2017-04-10')
    print(now1.__name__)


@log1('excute')
def now2():
    print('2017-04-11')
    print(now2.__name__)

now1()
now2()
